//
//  HMCycleImageView.h
//  02-CycleImageView控件
//
//  Created by teacher on 2017/7/23.
//  Copyright © 2017年 teacher. All rights reserved.
//

#import <UIKit/UIKit.h>

/*
 依赖库
 1. 'Masonry', '~> 1.0.2'
 2. 'SDWebImage', '~> 4.0.0'
 
 注意：必须配置 Info.plist 的ATS
 */

@class HMCycleImageView;

@protocol HMCycleImageViewDataSource <NSObject>

// 提供图片轮播器的数量
- (NSInteger)numberOfItemsInCycleImageView:(HMCycleImageView *)cycleImageView;

// 返回图片轮播器的图片地址
- (NSURL *)cycleImageView:(HMCycleImageView *)cycleImageView urlForImageViewAtIndex:(NSInteger)index;

@end

@protocol HMCycleImageViewDelegate <NSObject>



@end

@interface HMCycleImageView : UIView

@property (strong, nonatomic)   UIImage                         *placeholderImage;

@property (strong, nonatomic)   UIColor                         *currentPageControlColor;

@property (assign, nonatomic)   id<HMCycleImageViewDataSource>  dataSource;

@property (assign, nonatomic)   id<HMCycleImageViewDelegate>    delegate;

- (void)reloadData;

@end
